﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Web Worker</title>
    <meta name="tags" content="" />
    <meta name="keywords" content="web worker workers parallet task thread threaded multi-threaded"/>
    <meta name="description" content="JavaScript has concurrency! Use the web worker to launch a new thread and improve app performance." />
    <meta name="author" content="Jeremy Foster" />

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.2.0/css/ui-light.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.2.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.2.0/js/ui.js"></script>

    <link href="webworker.css" rel="stylesheet" />
    <script src="webworker.js"></script>
</head>
<body>
    <div class="webworker fragment">
        <header aria-label="Header content" role="banner">
                        <button data-win-control="WinJS.UI.BackButton"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">Web Worker</span>
            </h1>
        </header>
        <section aria-label="Main content" role="main">
            <div class="explanation">The following text is generated by an interaction between two threads in JavaScript. Look at the code to see how these entities communicate.</div>
            <div id="log"></div>
            <div><img src="diagram.png" /></div>
        </section>
    </div>
</body>
</html>
